<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>simple - jquery异步获取数据</title>
	</head>
	<body>
		<div class="jquery-ajax"></div>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script>
			$.get('data.php',function(data){
			    console.log(data);
				var str='<h1>'+data.category+'</h1>';
				$.each(data.article,function(index,item){
                    str += '<ul><li>'+item.title+'</li><li>'+item.author+'</li></ul>';
                });
				$('.jquery-ajax').html(str);
			},'json');
		</script>
	</body>
</html>
